package com.ruoyi.project.basic.inventoryclass.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.basic.inventoryclass.mapper.JcInventoryclassMapper;
import com.ruoyi.project.basic.inventoryclass.domain.JcInventoryclass;
import com.ruoyi.project.basic.inventoryclass.service.IJcInventoryclassService;

/**
 * 存货分类Service业务层处理
 * 
 * @author frank
 * @date 2024-08-24
 */
@Service
public class JcInventoryclassServiceImpl implements IJcInventoryclassService 
{
    @Autowired
    private JcInventoryclassMapper jcInventoryclassMapper;

    /**
     * 查询存货分类
     * 
     * @param jcInventoryclassoid 存货分类主键
     * @return 存货分类
     */
    @Override
    public JcInventoryclass selectJcInventoryclassByJcInventoryclassoid(String jcInventoryclassoid)
    {
        return jcInventoryclassMapper.selectJcInventoryclassByJcInventoryclassoid(jcInventoryclassoid);
    }

    /**
     * 查询存货分类列表
     * 
     * @param jcInventoryclass 存货分类
     * @return 存货分类
     */
    @Override
    public List<JcInventoryclass> selectJcInventoryclassList(JcInventoryclass jcInventoryclass)
    {
        return jcInventoryclassMapper.selectJcInventoryclassList(jcInventoryclass);
    }

    /**
     * 新增存货分类
     * 
     * @param jcInventoryclass 存货分类
     * @return 结果
     */
    @Override
    public int insertJcInventoryclass(JcInventoryclass jcInventoryclass)
    {
        return jcInventoryclassMapper.insertJcInventoryclass(jcInventoryclass);
    }

    /**
     * 修改存货分类
     * 
     * @param jcInventoryclass 存货分类
     * @return 结果
     */
    @Override
    public int updateJcInventoryclass(JcInventoryclass jcInventoryclass)
    {
        return jcInventoryclassMapper.updateJcInventoryclass(jcInventoryclass);
    }

    /**
     * 批量删除存货分类
     * 
     * @param jcInventoryclassoids 需要删除的存货分类主键
     * @return 结果
     */
    @Override
    public int deleteJcInventoryclassByJcInventoryclassoids(String[] jcInventoryclassoids)
    {
        return jcInventoryclassMapper.deleteJcInventoryclassByJcInventoryclassoids(jcInventoryclassoids);
    }

    /**
     * 删除存货分类信息
     * 
     * @param jcInventoryclassoid 存货分类主键
     * @return 结果
     */
    @Override
    public int deleteJcInventoryclassByJcInventoryclassoid(String jcInventoryclassoid)
    {
        return jcInventoryclassMapper.deleteJcInventoryclassByJcInventoryclassoid(jcInventoryclassoid);
    }
}
